package edu.sctu.practice.class01.liangyuxiang.day20150928;

/**
 * Created by 梁玉翔 on 2015/9/28.
 */
public class Client {
    public static void main(String[] args) {

        ConcretePrototype cp = new ConcretePrototype();
        cp.setString("我是原型模式");
        cp.getString();

        ConcretePrototype clonecp1 = (ConcretePrototype)cp.clone();
        clonecp1.getString();

        for(int i=0; i< 5; i++){
            ConcretePrototype clonecp = (ConcretePrototype)cp.clone();
            clonecp.show();
        }
    }
}
